﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
 Id="P3.ContactsMap"
 Location="CommandUI.Ribbon"
 RegistrationType="ContentType"
 RegistrationId="0x0106"
 Rights="ApproveItems">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.ListItem.Actions.Controls._children">
          <Button Id="P3.SharePoint.Ribbon.P3tools.ContactsMap"
                      Sequence="60"
                      LabelText="Map"
                      Command="ShowMap"
                      Image32by32="~site/Style Library/P3/images/showMap.gif"
                      TemplateAlias="o2"
                      />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
          Command="ShowMap"
          EnabledScript="javascript:enableApprovalAll_Mapping();"
          CommandAction="javascript:showApproveAll_Mapping(); " />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
  <CustomAction
   Location="ScriptLink"
   ScriptSrc ="~site/Style Library/P3/Script/Mapping.js"/>
</Elements>